package day01;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import untils.ClickSource;

public class Example2 {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        env
                    .addSource(new ClickSource())
                    .print();

        env.execute();
    }
}
